//
//  Header.h
//  WuliHanhan
//
//  Created by chen tang on 16/2/25.
//  Copyright © 2016年 LVpeng. All rights reserved.
//

#ifndef Header_h
#define Header_h


#define biliwith(a)                 (a*[[UIScreen mainScreen] bounds].size.width)/320.0
#define biliheight(a)               (a*[[UIScreen mainScreen] bounds].size.height)*320.0

#define biliGao                  ([UIScreen mainScreen] bounds].size.width*4)/3.0


#define uicolor(a,b,c)              [UIColor colorWithRed:a/255.0 green:b/255.0 blue:c/255.0 alpha:1.0]


#define heightView   [[UIScreen mainScreen] bounds].size.height

#define WithView     [[UIScreen mainScreen] bounds].size.width

#define SINGLETON_INTERFACE(viewController) +(viewController*)sharedInstance


#define sloganIntence(viewController)  \
                                            static viewController *threeView = nil;\
                                            + (viewController *)sharedInstance{\
                                        @synchronized(self)\
                                        {\
                                                if (threeView == nil)\
                                            {\
                                            threeView = [[viewController alloc] init];\
                                            }\
                                        }\
                                            return threeView;\
                                            }\


#define yonghuDengluJudge                [[NSUserDefaults standardUserDefaults] valueForKey:userLogin]




#define dianzan                     @"dianzan"


#define userLogin                   @"yonghudenglu"


#define appVersion                  @"1.0"
#define typetext                    @"application/json; charset=utf-8"



//#define hostName                    @"http://120.76.153.149/v0/"
#define hostName                    @"http://192.168.0.163/v0/"

#define getStarList                 @"huoqumingxingliebiao"
#define getStarListAPI              @"star/"

#define getFloeStar                 @"huoquguanzhumingxing"
#define getFlowStarAPI              @"star/user/"


#define addStar                     @"zengjiamingxing"
#define addStarAPI                  @"star/"



#define qingqiuremenziyuan          @"qingqiuremenziyuan"
#define qingqiuremenziyuanAPI       @"recommend/searchpage/"


#define wenzisousuo                 @"wenzisuosou"
#define wenziSousuoAPI              @"search/?keyword="



#define shouyeshuju                 @"shouyeshuju"
#define shouyeshujuAPI              @"recommend/homepage?page="

#define yonghudenglu                @"yonghudenglu"
#define yonghudengluAPI             @"user/"


#define zuopingxiangqing            @"zuopinxiangqing"
#define zuopingxiangqingAPI         @"work/"


#define workList                    @"yonghuzuopinlist"
#define workListAPI                 @"work/user/"


#define zuopinpinglin               @"zuopinpinglun"
#define zuopinpinglunAPI            @"work/"

#define yonghushoucangList          @"yonghushoucangList"




#define mingxingbiaoqian            @"mingxingbiaoqian"
#define mingxingbiaoqianAPI         @"material/"


#define shoucangzuopin              @"shoucangzuopin"
#define shoucangzuopinAPI           @"work/"
#define imageCountNUmber        9


#define messageAPI                     @"message/"
#define messageString               @"xiaoxi"



#define biaoqianzuopin              @"biaoqianzuopin"

#define mingxingzuopin              @"mingxingzuopin"


#define imageSaveSuccess       @"shuxinxiangce"
#define getXiangceImage        @"huoquxiangcexuanzhong"



#define systemNotion            @"system"
#endif /* Header_h */
